let regexp = /cat|dog/;
console.log(regexp.test("cat"));
console.log(regexp.test("dog"));